package com.eposi.eposigameinterface;

import com.eposi.eposigameinterface.adapter.ChatBoxAdapter;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ListView;
import android.widget.RelativeLayout;

public class LobbyActivity extends MenuActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setViewContent(R.layout.activity_lobby);
		ListView list = (ListView) findViewById(R.id.activity_lobby_list_message);
		ChatBoxAdapter adapter = new ChatBoxAdapter(this);
		list.setAdapter(adapter);
		RelativeLayout btnCreateTable = (RelativeLayout) findViewById(R.id.activity_lobby_btn_create_game);
		btnCreateTable.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(LobbyActivity.this, CreateGameActivity.class);
				startActivity(intent);
			}
		});
	}

}
